/*
 * @Author: wangxiaojie
 * @LastEditors: wangxiaojie
 */
const debounce = require('./debounce') //防抖 在一段时间内，不论触发多少期回调，都已最后一次为准
const throttle = require('./throttle') // 节流 调用多次、只第一次调用有效

const fn = (name) => {
  console.log(name)
}

const fn1 = throttle(fn, 1000)

fn1('wang')
fn1('xiao')
fn1('jie')